import http from '@/utils/http';

export function getList(page,pageSize,name,phone,sex) {
  return http.get('/employee/list',{
    params:{
        page,
        pageSize,
        name,
        phone,
        sex
    }
  })
}

export function deletemployee(id) {
    return http.delete(`/employee/delete/${id}`) 
}

export function addEmployee(data) {
    return http.post('/employee/add',data)
}     

export function updateEmployee(data) {
  return http.put('/employee/update',data)
}     




